﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;


namespace KPIS.GERP.GIMS.BLL
{
    public class PurchaseRequestItemBLL
    {
        private static readonly PurchaseRequestItemDAL dal = DataAccess.CreatePurchaseRequestItem();

        public PurchaseRequestItemBLL()
        {

        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItem(int PcReqSeq)
        {
            return dal.GetPurchaseRequestItem(PcReqSeq);
        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItem_EditPcReq(int PcReqSeq)
        {
            return dal.GetPurchaseRequestItem_EditPcReq(PcReqSeq);
        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItemFromBid(int BidSeq)
        {
            return dal.GetPurchaseRequestItemFromBid(BidSeq);
        }

        public void Update(IList<PurchaseRequestItemInfo> infoList)
        {
            dal.Update(infoList);
        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItem(string search_text, int PrSeq)
        {
            return dal.GetPurchaseRequestItem(search_text, PrSeq);
        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItemFromBidder(string search_text, int BidderSeq)
        {
            return dal.GetPurchaseRequestItemFromBidder(search_text, BidderSeq);
        }

        public IList<PurchaseRequestItemInfo> GetPurchaseRequestItemListFromBidder(int BidderSeq)
        {
            return dal.GetPurchaseRequestItemListFromBidder(BidderSeq);
        }
    }
}
